home *** CD-ROM | disk | FTP | other *** search
/ il gioco del Kamasutra / Milo Manara Kamasutra.iso / mac / DATA / ParteIII / GameI / Spada.dir / 00042_Script_42 < prev    next >
Text File  |  1997-11-24  |  2KB  |  54 lines

  1. on mouseleave
  2.   
  3.   set the visible of sprite 35 to 0
  4.   
  5. end mouseleave
  6.  
  7.  
  8. on mousedown
  9.   
  10.   global oldloc
  11.   puppetsprite 35, true
  12.   set oldloc = the loc of sprite 35
  13.   repeat while the stilldown
  14.     set the loc of sprite 35 to point(the mouseH,the mouseV)
  15.     updatestage
  16.   end repeat
  17.   
  18. end mousedown
  19.  
  20. on mouseUp
  21.   
  22.   global oldloc, UomoTesto1, UomoTesto2, UomoTesto3, UomoCard1, UomoCard2, UomoCard3
  23.   global Coppia1, Coppia2, Coppia3, Test1, Test2, Test3
  24.   if (Test1 = 0) and (inside(the loc of sprite 35, the rect of sprite 14 ) = 1) then
  25.     set the loc of sprite 35 to oldloc
  26.     puppetsprite 35, 0
  27.     set the membernum of sprite 21 to (the membernum of sprite 35)
  28.     set UomoCard1 = the name of member (the membernum of sprite 35)  
  29.     set the text of member 17 to "Uomo " & (the name of member (the membernum of sprite 35))
  30.     put the text of member 17 into UomoTesto1
  31.     updatestage
  32.   else if (Test2 = 0) and (inside(the loc of sprite 35, the rect of sprite 15 ) = 1) then
  33.     set the loc of sprite 35 to oldloc
  34.     puppetsprite 35, 0
  35.     set the membernum of sprite 22 to (the membernum of sprite 35)
  36.     set UomoCard2 = the name of member (the membernum of sprite 35)
  37.     set the text of member 18 to "Uomo " & (the name of member (the membernum of sprite 35))
  38.     put the text of member 18 into UomoTesto2
  39.     updatestage
  40.   else if (Test3 = 0) and (inside(the loc of sprite 35, the rect of sprite 16 ) = 1) then
  41.     set the loc of sprite 35 to oldloc
  42.     puppetsprite 35, 0
  43.     set the membernum of sprite 23 to (the membernum of sprite 35)
  44.     set UomoCard3 = the name of member (the membernum of sprite 35)
  45.     set the text of member 19 to "Uomo " & (the name of member (the membernum of sprite 35))
  46.     put the text of member 19 into UomoTesto3
  47.     updatestage
  48.   else
  49.     set the loc of sprite 35 to oldloc
  50.     puppetsprite 35, 0
  51.   end if
  52.   
  53. end mouseUp
  54.